<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script type="text/javascript">
	var sex = prompt("请输入性别");
	var age = prompt("请输入年龄");

	if(sex == "男"){

		if(age>20){
			alert("大叔");
		}else{
			alert("小伙子");
		}

	}else{
		if(age>20){
			alert("大妈");
		}else{
			alert("小姑娘");
		}
	}



	</script>
</head>
<body>
	
</body>
</html>